using System;
using System.Configuration;

namespace AntEater.ComponentModel.Configuration
{
    /// <summary>
    /// Provides the configuration information for a PresenterElement.
    /// </summary>
    public class PresenterElement : TypeElement
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="T:PresenterElement"/> class.
        /// </summary>
        public PresenterElement() {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="PresenterElement"/> class.
        /// </summary>
        /// <param name="name">The name.</param>
        /// <param name="assembly">The assembly.</param>
        /// <param name="type">The type.</param>
        internal PresenterElement(string name, string assembly, string type) {
            this.ElementInformation.Properties["name"].Value = name;
            this.ElementInformation.Properties["assembly"].Value = assembly;
            this.ElementInformation.Properties["type"].Value = type;
        }
    }
}
